const newsData = require('../data/news')

exports.renderHome = (req, res) => {
  const seo = {
    title: '首页',
    description: '首页',
    keywords: 'EJS,SEO'
  }

  res.render('index', {
    seo,
    newsList: newsData
  })
}

exports.renderAbout = (req, res) => {
  const seo = {
    title: '关于我们',
    description: '关于我们',
    keywords: 'EJS,SEO'
  }

  res.render('about', { seo })
}
